load(
    "//bazel:envoy_build_system.bzl",
    "envoy_package",
)
load(
    "//test/extensions:extensions_build_system.bzl",
    "envoy_extension_cc_test",
)

licenses(["notice"])  # Apache 2

envoy_package()

envoy_extension_cc_test(
    name = "config_test",
    srcs = ["config_test.cc"],
    extension_names = ["envoy.retry_host_predicates.previous_hosts"],
    deps = [
        "//source/common/network:address_lib",
        "//source/extensions/retry/host/previous_hosts:config",
        "//test/mocks/upstream:host_mocks",
    ],
)

envoy_extension_cc_test(
    name = "integration_test",
    srcs = ["integration_test.cc"],
    extension_names = ["envoy.retry_host_predicates.previous_hosts"],
    deps = [
        "//source/extensions/retry/host/previous_hosts:config",
        "//test/integration:http_integration_lib",
        "//test/integration:integration_lib",
    ],
)
